package com.ccit.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("兑换记录")
@TableName("Integral_record")
public class IntegralRecord {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品名称")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "商品库存")
    @TableField("integral_goods_id")
    private Long integralGoodsId;

    @ApiModelProperty(value = "时间")
    @TableField("time")
    private Timestamp time;

    @TableLogic//逻辑删除注解
    @ApiModelProperty(value = "商品逻辑删除(下架),1 已删除  0 未删除")
    @TableField("deleted")
    @JsonIgnoreProperties
    private Integer deleted;
}
